-- GENERATED SPELL FOR [Ashtongue Elementalist] --


function spell0_23523(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(42024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23523', 1000, 1)
end

function spell1_23523(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(42023,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23523', 8000, 1)
end

function Sorts_23523(pUnit, Event)
local choix_sorts_23523 = math.random(0, 1)
if choix_sorts_23523 == 0 then
pUnit:RegisterEvent('spell0_23523', 1, 1)
end
if choix_sorts_23523 == 1 then
pUnit:RegisterEvent('spell1_23523', 1, 1)
end
end

function mob23523_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23523', math.random(1500, 3000), 1)
end

function mob23523_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23523_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23523_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23523, 1, 'mob23523_Action')
RegisterUnitEvent(23523, 2, 'mob23523_Leave')
RegisterUnitEvent(23523, 3, 'mob23523_Kill')
RegisterUnitEvent(23523, 4, 'mob23523_Die')
